<? $this->headTitle($this->category->name . ' | ' . $this->shopName . ' - ' . $this->translate($this->shopTitle)); ?>
<? $this->headMeta()->appendName('keywords', $this->translate('online store') . ', ' . mb_strtolower($this->translate($this->shopCity), 'utf8') . ', ' . mb_strtolower($this->category->name, 'utf8')) ?>
<? $this->headMeta()->appendName('description', $this->category->name . '. ' . $this->translate($this->shopTitle) . '. ' . $this->translate('Sale, shipment, warranty.')); ?>
<? $this->headLink()->appendStylesheet('/css/catalog.css') ?>
<? $this->headScript()->appendFile('/js/products_control.js') ?>
<div class="breadcrumb">
    <?= $this->Breadcrumb() ?>
</div>
<div class="category">
    <h1><?= $this->escape($this->category->name) ?></h1>
    <? if ($this->children): ?>
        <table class="subcategories">
            <? foreach ($this->children as $category): ?>
                <tr>
                    <td>
                        <img src="<?= $category->thumb_pic ?>"/>
                    </td>
                    <td>
                        <a href="/<?= $this->language ?>/catalog/<?= $category->id ?>">
                            <?= $this->escape($category->name) ?>
                        </a>
                    </td>
                </tr>
            <? endforeach; ?>
        </table>
    <? else: ?>
        <?=
        $this->partial('catalog/_products.phtml', array(
            'productsCount' => $this->productsCount,
            'formCatalog' => $this->formCatalog,
            'products' => $this->products,
            'language' => $this->language,
            'pageCount' => $this->pageCount,
            'rowCount' => $this->rowCount,
            'page' => $this->page,
            'paginationUrl' => $this->paginationUrl,
            'shopMode' => $this->shopMode
        ));
        ?>
    <? endif; ?>
</div>

